package Snake;

public class Jump extends Cell implements Comparable<Jump> {

	public Jump(int x, int y) {
		super(x, y);
	}


	
	public synchronized boolean isValidToMove(){
		return true;
	}
	
	public boolean isJump(){
		return true;
	}
	
	@Override
	public int compareTo(Jump jump) {
		if (this.getX() < jump.getX()) {
			return -1;
		} else if (this.getX() > jump.getX()) {
			return 1;
		}
		return Integer.compare(this.getY(), jump.getY());
	}

	@Override
	public String toString() {
		return "Jump [x=" + getX() + ", y=" + getY() + "]";
	}

}
